<?php
namespace app\admin\controller;

use core\Lib;
// use admin\User;

use core\Menu;
use core\Ac;

use core\modules\AcManager;

class Index extends \C {

  public function index(){
    $menu=(new \core\modules\Menu())->first(config("menu."),(\app\admin\classes\AdminUser::getInstance()->ac));
    if (empty($menu["href"])){
      return "Permission denied";
    }else{
      $this->redirect($menu["href"]);
    }
    

  }


}
